package clothes.tools.dao;

import clothes.tools.pojo.Commodity;

import java.util.List;

public interface CommodityDao {

    public int addCommodity(Commodity commodity);

    public int deleteCommodityById(String id);

    public int updateCommodity(Commodity commodity);

    public Commodity queryCommodityById(String  id);

    public List<Commodity> queryCommodities();

    public List<Commodity> queryCommodities(String page,String limit);


    public List<Commodity> queryCommodity(String page,String limit,String name);


}
